﻿using System;
using System.Configuration;

namespace NDBGen.Configuration
{
    public class SchemaOutputElement : ConfigurationElement
    {
        const String PROPNAME_DATAACCESS = "dataAccess";
        [ConfigurationCollection(typeof(SchemaDataAccessOutputElement))]
        [ConfigurationProperty(PROPNAME_DATAACCESS, IsRequired = false)]
        public GenericElementCollection<SchemaDataAccessOutputElement> DataAccess
        {
            get { return (GenericElementCollection<SchemaDataAccessOutputElement>)this[PROPNAME_DATAACCESS]; }
            set { this[PROPNAME_DATAACCESS] = value; }
        }

        const String PROPNAME_DATABASE = "database";
        [ConfigurationProperty(PROPNAME_DATABASE, IsRequired = false)]
        public SchemaDatabaseOutputElement Database
        {
            get { return (SchemaDatabaseOutputElement)this[PROPNAME_DATABASE]; }
            set { this[PROPNAME_DATABASE] = value; }
        }
    }
}